const { getNovelList, getNovelChapters, getNovelDetails, getRandomNovels } = require('./novel');
const express = require('express');
const router = express.Router();

// 获取小说列表接口
router.get('/api/novels', getNovelList);

// 获取随机小说接口
router.get('/api/random-novels', getRandomNovels);

// 获取小说章节接口
router.get('/api/novels/:novelId/chapters', getNovelChapters);

// 获取小说详情接口
router.get('/api/novels/:novelId', getNovelDetails);

module.exports = router;